Name :String lookup
Symbol :FIND
Illustrate:
Look for the position of the character in IN1 where IN2 first started to appear, and output 0 if IN2 is not found.
Image:
Parameter:
| Parameter | Statement | Type | Description |
|---|---|---|---|
| IN1 | Input | STRING | Enter the string IN1 |
| IN2 | Input | STRING | Enter the string IN2 |
| OUT | Output | USINT | Output location |
Example:
LD:
ST:
Interpretation:
| parameter | operand | value |
|---|---|---|
| IN1 | TagIn1 | Enter a value:’abcdefg’ |
| IN2 | TagIn2 | Enter a value:’def’ |
| OUT | TagOut | Output value:4 |
IN1 and IN2 input string type data, and OUT outputs the found location.